package com.bm.specialvehiclefordispatcher.bean;

import java.io.Serializable;
import java.util.List;

import com.bm.specialvehiclefordispatcher.R;

public class ServiceLog implements Serializable {

	private static final long serialVersionUID = 786596695369933266L;

	public long id;

	public Owner owner;

	public long orderId;

	public String distance;

	public double volume;

	public List<Fee> typeCharges;

	public double realsumPrice;

	public String startTime;

	public String endTime;
	/** 0:待签收 1:待结算 2:已结算 **/
	public int status;

	public String remarks;
	
	public long ownerId;

	public String getStatusText(int status) {
		String tmp = "";
		switch (status) {
		case 0:
			tmp = "待签收";
			break;

		case 1:
			tmp = "待结算";
			break;

		case 2:
			tmp = "已结算";
			break;
		}
		return tmp;
	}
	
	public int getStatusIcon(int status) {
		int tmp = 0;
		switch (status) {
		case 0:
			tmp = R.drawable.logs_status_waiting;
			break;

		case 1:
			tmp = R.drawable.logs_status_waiting;
			break;

		case 2:
			tmp = R.drawable.logs_status_ok;
			break;
		}
		return tmp;
	}

}